#include "MarsPrecompile.h"
#include "MarsPlatform.h"

using namespace GP;

bool Platform::ContainDevice( Device::DeviceType eDeviceType ) const
{
	DeviceVecConstItr it = m_vecDevices.begin();
	DeviceVecConstItr end = m_vecDevices.end();

	for ( ; it != end; ++it )
	{
		const DevicePtr& device = ( *it );
		if ( device->GetDeviceType() == eDeviceType )
			return true;
	}

	return false;
}